package com.gxa.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.gxa.dto.PurchaseAddDto;
import com.gxa.dto.PurchaseGoodsDto;
import com.gxa.entity.PurchaseGoods;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface PurchaseGoodsMapper {
    void insert(PurchaseAddDto purchaseAddDto);

    void batchUpdate(@Param("purchaseGoodsList") List<PurchaseGoods> purchaseGoodsList);

    //根据采购单id查询采购单中的商品
    Integer[] queryGoodsDetailId(PurchaseAddDto purchaseAddDto);

    //删除采购单商品
    void deleteById(@Param("ids") List<Integer> ids);

    //根据采购单id查询采购单详情商品
    List<PurchaseGoodsDto> queryByPurchaseId(int id);
}
